package org.su.webadapter.bind;

import org.apache.commons.lang.StringUtils;


/**
 * 字符串到Number类型的转换
 * 
 * @author yangchuan
 * 
 */
public abstract class AbstractNumberEditor extends AbstractParameterEditor {

	@Override
	public Object parseText(String text) {
		Object result = null;
		if (StringUtils.isNotBlank(text)) {
			result = getValue(text);
		}
		return result;
	}

	protected abstract Object getValue(String text);

}
